import Mock from 'mockjs'

Mock.mock('/home/list',()=>{
    console.log('Mocking /home/list endpoint')
    return {
        code: 200,
        data: {
            list: [
                { id: 1, name: 'John Doe', age: 30 },
                { id: 2, name: 'Jane Smith', age: 25 }
            ],
            total: 2
        },
        message: 'Success'
    };
    
})